PDF.co icon

PDF.co

Automate document workflows with OCR, AI invoice parsing, data extraction, conversion, form filling, merging/splitting, and barcode processing. Ideal for invoices, forms, and scanned files.

Compress PDF

AI-generated

Summary

Compresses a PDF fetched from a URL using PDF.co and returns the resulting output data, including a link to the compressed file. Configure optional compression, access, naming, expiry, password, or callback settings as needed.

Inputs

  • PDF URL (required) — URL of the PDF to compress.
  • Custom Compression Configuration — JSON configuration for compression options supported by PDF.co.
  • File Name — Name for the compressed output file; PDF.co uses the original file name if omitted.
  • HTTP Username — Username for accessing the source URL when required.
  • HTTP Password — Password for accessing the source URL when required.
  • Output Links Expiration (In Minutes) — How long the output link remains available; defaults to 60 minutes.
  • Password — Password for a protected source PDF.
  • Webhook URL — Callback URL or webhook for receiving output data.

Output shape

A single item containing PDF.co's compression result, including the output file link.

The link's lifetime is controlled by Output Links Expiration. OAuth2 or API Key authentication is selected separately.

Links

Discussion